/*
 * dio.h
 *
 * Created: 6/18/2013 12:23:28 AM
 *  Author: Tim
 */ 


#ifndef DIO_H_
#define DIO_H_

#include <avr/io.h>

#define D0_msk		0x02
#define D1_msk		0x01
#define D2_msk		0x02
#define D3_msk		0x04
#define D4_msk		0x08
#define D5_msk		0x10
#define D6_msk		0x20
#define D7_msk		0x02
#define D8_msk		0x01
#define D9_msk		0x08
#define D10_msk		0x04
#define D11_msk		0x02
#define D12_msk		0x01
#define PFIO_msk	0x01

void dioTgl(uint8_t pinNumber);
void dioSet(uint8_t pinNumber);
void dioClr(uint8_t pinNumber);
void dioDirSet(uint8_t pinNumber);
void dioDirClr(uint8_t pinNumber);
void dioSense(PORT_ISC_t isc, uint8_t pinNumber);
uint8_t dioReadLow();
uint8_t dioReadHigh();
#endif /* DIO_H_ */